package com.cuijq.ms.Interpreterdesign.v2;

/**
 * @author by CuiJQ
 * @Classname NumberExpression
 * @Description NumberExpression Description
 * @Date 2021/5/31 15:34
 */
public class NumberExpression implements Expression {

  private long number;

  public NumberExpression(long number) {
    this.number = number;
  }

  public NumberExpression(String number) {
    this.number = Long.parseLong(number);
  }

  @Override
  public long interpret() {
    return this.number;
  }

}
